package com.ruoyi.InboundManagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 其他入库管理对象 other_inbound
 * 
 * @author admin
 * @date 2024-07-03
 */
public class OtherInbound extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 其他入库记录ID */
    private Long otherId;

    /** 其他入库单号 */
    @Excel(name = "其他入库单号")
    private String otherNumber;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 入库原因 */
    @Excel(name = "入库原因")
    private String reason;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inboundDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setOtherId(Long otherId) 
    {
        this.otherId = otherId;
    }

    public Long getOtherId() 
    {
        return otherId;
    }
    public void setOtherNumber(String otherNumber) 
    {
        this.otherNumber = otherNumber;
    }

    public String getOtherNumber() 
    {
        return otherNumber;
    }
    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setInboundDate(Date inboundDate) 
    {
        this.inboundDate = inboundDate;
    }

    public Date getInboundDate() 
    {
        return inboundDate;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("otherId", getOtherId())
            .append("otherNumber", getOtherNumber())
            .append("materialName", getMaterialName())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("reason", getReason())
            .append("inboundDate", getInboundDate())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
